// 创建token集合
const mongoose = require('mongoose');
require('./connect')

//创建token集合规则
const tokenSchema = new mongoose.Schema({
  token: {
    type: String
  },
  username: {
    type: String
  },
  role: {
    type: String
  },
  uid: {
    type: String
  }
})

// 创建集合
const Token = mongoose.model('Token', tokenSchema);

// 导出
module.exports = Token
